<template></template>

<script>
import mixin from "../js/mixin"
export default {
  name: "redirect",
   mixins: [mixin],
  data() {
    return {
      item: {},
    };
  },
  created() {},
  mounted() {
    this.redirect()
  },
  updated() {},
  methods: {
    //去登录
    redirect() {
      this.refreshPage()
      let type = localStorage.getItem("admin_type")
      if(!type){
        type = 1
      }
      if (type == 1) {
        this.$router.push({ path: "/data/storeData" })
      }
      if (type == 2) {
        this.$router.push({ path: "/data/storeData" })
      }

      if (type == 3) {
        this.$router.push({ path: "/data/storeData" })
      }
       if (type == 4) {
        this.$router.push({ path: "/data/storeData" })
      }
      if (type == 5) {
        this.$router.push({ path: "/order/index" })
      }
    },
  },
};
</script>

